package com.yunxi.model.sto;

import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 渠道商车辆买卖
 * </p>
 *
 * @author caoYong
 * @since 2019-08-30
 */
@Data
@TableName("pms_partner_vehicle_trade")
@ApiModel(value="PartnerVehicleTrade对象", description="渠道商车辆买卖")
public class PartnerVehicleTrade implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "TRADE_ID", type = IdType.UUID)
    private String tradeId;

    @ApiModelProperty(value = "标题")
    @TableField("TRADE_TITLE")
    private String tradeTitle;

    @ApiModelProperty(value = "车辆接收渠道商代码")
    @TableField("PARTNER_CODE")
    private String partnerCode;

    @ApiModelProperty(value = "买方大区代码")
    @TableField("IN_AREA_CODE")
    private String inAreaCode;

    @ApiModelProperty(value = "车辆来源渠道商代码")
    @TableField("OUT_PARTNER_CODE")
    private String outPartnerCode;

    @ApiModelProperty(value = "卖方大区代码")
    @TableField("OUT_AREA_CODE")
    private String outAreaCode;

    @ApiModelProperty(value = "买卖车辆数量")
    @TableField("TRADE_QUANLITY")
    private Integer tradeQuanlity;

    @ApiModelProperty(value = "审核状态(Trade_ApproveStatus,1待审批,2小区经理卖家通过,3小区经理卖家驳回,4大区经理卖家通过,5大区经理卖家驳回,6大区经理买家通过,7大区经理买家驳回,8总部通过,9总部驳回,10审批中)")
    @TableField("APPROVE_STATUS")
    private Integer approveStatus;

    @ApiModelProperty(value = "审核时间")
    @TableField("APPROVE_TIME")
    private Date approveTime;

    @ApiModelProperty(value = "驳回原因")
    @TableField("RETURN_REASON")
    private String returnReason;

    @ApiModelProperty(value = "交易描述")
    @TableField("TRADE_DESC")
    private String tradeDesc;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField(value = "UPDATE_BY",fill = FieldFill.UPDATE)
    private String updateBy;

}
